public with sharing class testPdf {

   
     
     public pagereference  genPdf(){
     
         pagereference pf = new pagereference('/apex/pageRender1');
            pf.getContentAsPDF();
            
            return pf;
        
     
     }
     
    
}